<template>
  <div class="content-container" style="position: relative">
    <div class="panel">
      <img class="system-logo-icon" src="@/assets/logo.png"></img>
      <div style="height: 10px"></div>
      <!-- <div class="title">维权案例</div> -->
      <div @click="$router.push({path:'/case-detail',query:{jfalxh:item.jfalxh}})" class="list-item" v-for="(item,index) in list" :key="index" >
        <div class="jfalbt">{{item.jfalbt}}</div>
        <div class="aljs00">{{item.aljs00}}</div>
        <div class="more">
          <span>详情</span>
          <img src="@/assets/icon-more.png">
        </div>
      </div>
      <empty-data-panel v-if="list.length==0"></empty-data-panel>
    </div>

  </div>
</template>

<script>
import {laborRightsApi} from "@/api";
import ReturnBtn from "@/views/components/ReturnBtn.vue";

export default {
  name: "case-list",
  components:{
    ReturnBtn
  },
  data() {
    return {
      list: []
    }
  },
  mounted() {
    this.queryCase()
  },
  methods: {
    queryCase(){
      laborRightsApi.queryCase({limit:100,page:1}).then((res) => {
        this.list=res.data.records
      }).catch(()=>{

      })
    }
  }
}
</script>
<style scoped lang="scss" scoped>
.panel{
  width: 70%;
  margin-right: auto;
  margin-left: auto;
  color: white;
  overflow-y: auto;
  .title{
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
    height: 60px;
    font-size: xx-large;
    margin: 0 auto 15px auto;
    background-color: #1b78d5;
  }
  .list-item{
    position: relative;
    border-radius: 8px;
    line-height: 40px;
    font-size: large;
    margin-top: 15px;
    background-color: rgba(82, 72, 156,0.2);

    .jfalbt{
      font-size: 20px;
      margin-left: 20px;
      text-align: left;
      padding: 5px 0;
      font-weight: bold;
      text-decoration-line: underline;
    }
    .aljs00{
      text-indent: 2ch;
      margin-left: 5px;
      text-align: left;
      font-size: 18px;
      padding: 10px;
    }
    .more{
      position: absolute;
      right: 10px;
      bottom: 10px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      font-size: 12px;
      span {
        padding: 3px;
      }
      img {
        width: 18px;
        height: 18px;
      }
    }


  }


}
</style>
